﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ControllerLayer.Reports;

namespace ViewLayer.RejectedStudies
{
    public partial class Reject : Form
    {
        private Guid ReportPartOID_;
        private string status;
        public Reject(Guid reportPartOID_,string status)
        {
            InitializeComponent();
            this.ReportPartOID_ = reportPartOID_;
            this.status = status;
        }

        private void ButtonReject_Click(object sender, EventArgs e)
        {
            ReportsController.RejectInform(ReportPartOID_,status,comboBoxRejectedReason.SelectedValue.ToString());
            this.Close();
        }

        private void button2Cancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void Reject_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'reportChildDataSet.TranscriptionRejectReasonEnum_' table. You can move, or remove it, as needed.
            this.transcriptionRejectReasonEnum_TableAdapter.Fill(this.reportChildDataSet.TranscriptionRejectReasonEnum_);

        }
    }
}
